<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            width: 600px;
            height: 40px;
            border: 1px solid black;
            margin: 10px auto;
        }
        .box ul{
            height: 26px;
            margin: 7px auto 0;
        }
        .box ul li{
            list-style: none;
            float: left;
            font-size: 12px;
        }
        .number{
            background-color: gold;
            width: 26px;
            height: 26px;
            text-align: center;
            line-height: 24px;
            margin-left: 5px;
            margin-right: 5px;
        }
        .turn{
            width: 46px;
            height: 26px;
            line-height: 26px;
            text-align: center;
            background-color: gold;
            margin-left: 5px;
            margin-right: 5px;
        }
        .dian{
            width: 26px;
            text-align: center;
        }
    </style>
</head>
<body>
    <div class="box">
        <ul>
            <li class="turn">上一页</li>
            <li class="number">1</li>
            <li class="number">2</li>
            <li class="number">3</li>
            <li class="number">4</li>
            <li class="dian">…</li>
            <li class="number">17</li>
            <li class="number">18</li>
            <li class="number">19</li>
            <li class="number">20</li>
            <li class="turn">下一页</li>
        </ul>
    </div>
</body>
</html>